package com.woniuxy.book.service.impl;

import com.woniuxy.book.dao.RegistDao;
import com.woniuxy.book.dao.RegistDao2;
import com.woniuxy.book.service.Regist;

/**
 * @Author 罗蔚
 * @Date 2022/3/24 17:06
 * @Description TODO
 */
public class RegistImpl implements Regist {
    private RegistDao registDao;
    private RegistDao2 registDao2;

    public RegistImpl() {
    }

    public void setRegistDao(RegistDao registDao) {
        this.registDao = registDao;
    }

    public void setRegistDao2(RegistDao2 registDao2) {
        this.registDao2 = registDao2;
    }

    @Override
    public void checkUsername() {
        registDao.checkUsername();
        registDao2.success();
    }
}
